// 变量
$leftwidth:35px;
$leftwidth1:40px;

header {
    width: 100%;
    height: 80px;
    background: url(../static/img/bg.jpg) no-repeat;

    h2 {
        display: flex;
        align-items: center;
        line-height: 80px;
    }

    img {
        width: 50px;
        height: 50px;
        float: right;
        border-radius: 50px;
        margin-left: 50px;
        margin-right: 20px;

        @keyframes rotate {
            from {
                transform: rotateY(0);
            }

            to {
                transform: rotateY(360deg);
            }
        }

        &:hover {
            animation: rotate 2s infinite linear;
        }
    }
}

// main
main {
    width: 100%;
    height: 800px;
    display: flex;

    nav {
        width: 200px;
        height: 800px;

        h3 {
            padding-left: $leftwidth;
            background: royalblue;
            height: 50px;
            line-height: 50px;
        }

        ul {
            line-height: $leftwidth1;

            li {
                padding-left: $leftwidth1;
                font-size: 14px;
                display: none;
            }
        }

        h4 {
            padding-left: $leftwidth1;
            border-top: 1px solid blue;
        }
    }

    .cont {
        width: 100%;
        height: 800px;
        .header{
            width: 100%;
            height: 40px;
            font-size: 12px;
            border-bottom: 1px solid blue;
            p{
                margin-left: $leftwidth1;
                line-height: $leftwidth1;
            }
        }
    }
}